//
//  EFAReportTCell.m
//  efairy
//
//  Created by XiangDongMBP on 2017/8/6.
//  Copyright © 2017年 East. All rights reserved.
//

#import "EFAReportTCell.h"

@implementation EFAReportTCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)configView {
//    self.titleLabel.text = @"";
    
    NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"监测报告" ofType:@"txt"]];
    NSLog(@"监测报告的url = %@", url);
    self.detailLabel.text = [NSString stringWithContentsOfURL:url usedEncoding:nil error:nil];
}

- (void)configViewWithString:(NSString *)str {
    NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"监测报告" ofType:@"txt"]];
    NSString *doc = [NSString stringWithContentsOfURL:url usedEncoding:nil error:nil];
    self.detailLabel.text = [NSString stringWithFormat:@"%@\n\n%@", str, doc];
}

@end
